3e35b5938ce3b2594a2630bd52af1061b1bfd1d0,jpacontainer-addon-dev/src/main/java/com/vaadin/addon/jpacontainer/provider/jndijta/CachingMutableEntityProvider.java,CachingMutableEntityProvider,runInTransaction,#Runnable#,40

Before Change


    @Override
    protected void runInTransaction(Runnable operation) {
        try {
            UserTransaction utx = (UserTransaction) (new InitialContext())
                    .lookup(getJndiAddresses().getUserTransactionName());
            utx.begin();
            super.runInTransaction(operation);
            utx.commit();
        } catch (Exception ex) {
            throw new RuntimeException(ex);
        }

After Change


    }

    @Override
    protected void runInTransaction(Runnable operation) {
        Util.runInJTATransaction(getJndiAddresses(), operation);
    }

    @Override